package com.ganzalang.gmall.arthasdemo.service.impl;

import com.ganzalang.gmall.arthasdemo.service.CalculateService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * @description:
 * @author: Ganzalang
 * @Date 2021/10/13 11:24
 */
@Service
public class CalculateServiceImpl implements CalculateService {

    @Override
    public BigDecimal calculate(BigDecimal amount1, BigDecimal amount2) {
        return amount1.add(amount2);
    }
}
